

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create Customer</title>         
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Customer List</g:link></span>
        </div>
        <div class="body">
            <h1>Create Customer</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${customerInstance}">
            <div class="errors">
                <g:renderErrors bean="${customerInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerName">Customer Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerName','errors')}">
                                    <input type="text" maxlength="50" id="customerName" name="customerName" value="${fieldValue(bean:customerInstance,field:'customerName')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerTitle">Customer Title:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerTitle','errors')}">
                                    <input type="text" maxlength="50" id="customerTitle" name="customerTitle" value="${fieldValue(bean:customerInstance,field:'customerTitle')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerCompany">Customer Company:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerCompany','errors')}">
                                    <input type="text" maxlength="100" id="customerCompany" name="customerCompany" value="${fieldValue(bean:customerInstance,field:'customerCompany')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerMobile">Customer Mobile:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerMobile','errors')}">
                                    <input type="text" maxlength="50" id="customerMobile" name="customerMobile" value="${fieldValue(bean:customerInstance,field:'customerMobile')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerTel">Customer Tel:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerTel','errors')}">
                                    <input type="text" maxlength="50" id="customerTel" name="customerTel" value="${fieldValue(bean:customerInstance,field:'customerTel')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerEmail">Customer Email:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerEmail','errors')}">
                                    <input type="text" maxlength="50" id="customerEmail" name="customerEmail" value="${fieldValue(bean:customerInstance,field:'customerEmail')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerFax">Customer Fax:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerFax','errors')}">
                                    <input type="text" maxlength="50" id="customerFax" name="customerFax" value="${fieldValue(bean:customerInstance,field:'customerFax')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerQq">Customer Qq:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerQq','errors')}">
                                    <input type="text" maxlength="50" id="customerQq" name="customerQq" value="${fieldValue(bean:customerInstance,field:'customerQq')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerAddress">Customer Address:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerAddress','errors')}">
                                    <input type="text" maxlength="100" id="customerAddress" name="customerAddress" value="${fieldValue(bean:customerInstance,field:'customerAddress')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerZjtype">Customer Zjtype:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerZjtype','errors')}">
                                    <input type="text" id="customerZjtype" name="customerZjtype" value="${fieldValue(bean:customerInstance,field:'customerZjtype')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerZhengjian">Customer Zhengjian:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerZhengjian','errors')}">
                                    <input type="text" maxlength="50" id="customerZhengjian" name="customerZhengjian" value="${fieldValue(bean:customerInstance,field:'customerZhengjian')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerBirthday">Customer Birthday:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerBirthday','errors')}">
                                    <input type="text" maxlength="50" id="customerBirthday" name="customerBirthday" value="${fieldValue(bean:customerInstance,field:'customerBirthday')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerType">Customer Type:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerType','errors')}">
                                    <input type="text" id="customerType" name="customerType" value="${fieldValue(bean:customerInstance,field:'customerType')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerSalenum">Customer Salenum:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerSalenum','errors')}">
                                    <input type="text" id="customerSalenum" name="customerSalenum" value="${fieldValue(bean:customerInstance,field:'customerSalenum')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerOrdernum">Customer Ordernum:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerOrdernum','errors')}">
                                    <input type="text" id="customerOrdernum" name="customerOrdernum" value="${fieldValue(bean:customerInstance,field:'customerOrdernum')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerCarenum">Customer Carenum:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerCarenum','errors')}">
                                    <input type="text" id="customerCarenum" name="customerCarenum" value="${fieldValue(bean:customerInstance,field:'customerCarenum')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerUserid">Customer Userid:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerUserid','errors')}">
                                    <input type="text" id="customerUserid" name="customerUserid" value="${fieldValue(bean:customerInstance,field:'customerUserid')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerParentuserid">Customer Parentuserid:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerParentuserid','errors')}">
                                    <input type="text" id="customerParentuserid" name="customerParentuserid" value="${fieldValue(bean:customerInstance,field:'customerParentuserid')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerAddtime">Customer Addtime:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerAddtime','errors')}">
                                    
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerRecycled">Customer Recycled:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerRecycled','errors')}">
                                    <input type="text" id="customerRecycled" name="customerRecycled" value="${fieldValue(bean:customerInstance,field:'customerRecycled')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerTobirthday">Customer Tobirthday:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerTobirthday','errors')}">
                                    <input type="text" id="customerTobirthday" name="customerTobirthday" value="${fieldValue(bean:customerInstance,field:'customerTobirthday')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerIspublic">Customer Ispublic:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerIspublic','errors')}">
                                    <input type="text" id="customerIspublic" name="customerIspublic" value="${fieldValue(bean:customerInstance,field:'customerIspublic')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerUid">Customer Uid:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerUid','errors')}">
                                    <input type="text" id="customerUid" name="customerUid" value="${fieldValue(bean:customerInstance,field:'customerUid')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerB2btype">Customer B2btype:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerB2btype','errors')}">
                                    <input type="text" id="customerB2btype" name="customerB2btype" value="${fieldValue(bean:customerInstance,field:'customerB2btype')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerWorkcity">Customer Workcity:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerWorkcity','errors')}">
                                    <input type="text" maxlength="50" id="customerWorkcity" name="customerWorkcity" value="${fieldValue(bean:customerInstance,field:'customerWorkcity')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerFxprovince">Customer Fxprovince:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerFxprovince','errors')}">
                                    <input type="text" maxlength="200" id="customerFxprovince" name="customerFxprovince" value="${fieldValue(bean:customerInstance,field:'customerFxprovince')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerParentcid">Customer Parentcid:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerParentcid','errors')}">
                                    <input type="text" id="customerParentcid" name="customerParentcid" value="${fieldValue(bean:customerInstance,field:'customerParentcid')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerMsn">Customer Msn:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerMsn','errors')}">
                                    <input type="text" maxlength="50" id="customerMsn" name="customerMsn" value="${fieldValue(bean:customerInstance,field:'customerMsn')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerDept">Customer Dept:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerDept','errors')}">
                                    <input type="text" maxlength="50" id="customerDept" name="customerDept" value="${fieldValue(bean:customerInstance,field:'customerDept')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerWorkprovince">Customer Workprovince:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerWorkprovince','errors')}">
                                    <input type="text" maxlength="50" id="customerWorkprovince" name="customerWorkprovince" value="${fieldValue(bean:customerInstance,field:'customerWorkprovince')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerBid">Customer Bid:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'customerBid','errors')}">
                                    <input type="text" id="customerBid" name="customerBid" value="${fieldValue(bean:customerInstance,field:'customerBid')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="childuser">Childuser:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'childuser','errors')}">
                                    <g:select optionKey="id" from="${User.list()}" name="childuser.id" value="${customerInstance?.childuser?.id}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="parentuser">Parentuser:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:customerInstance,field:'parentuser','errors')}">
                                    <g:select optionKey="id" from="${User.list()}" name="parentuser.id" value="${customerInstance?.parentuser?.id}" ></g:select>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
